export const fomartDeformityType = (val: string) => {
  switch (val) {
    case "1":
      return "视力";
    case "2":
      return "听力";
    case "3":
      return "言语";
    case "4":
      return "肢体";
    case "5":
      return "智力";
    case "6":
      return "精神";
  }
};

export const fomartLevel = (val: string | number) => {
  switch (val) {
    case "1":
      return "一级";
    case "2":
      return "二级";
    case "3":
      return "三级";
    case "4":
      return "四级";
    case "5":
      return "不符合";
    case "6":
      return "资料不齐";
    case "7":
      return "变更评残类型";
    case "8":
      return "仍处于康复期";
    case "9":
      return "存在康复的可能性";
    case "10":
      return "不符合评残条件";
    case "11":
      return "未按时参加评定";
    case "12":
      return "二签驳回";
  }
};

export const fomartMatterName = (val: string) => {
  val = val.replace("《中华人民共和国残疾人证》", "");
  val = val.replace("窗口", "");
  return val;
};

export const formaterMatterNameFromType = (val: string) => {
  switch (val) {
    case "intermediary":
      return "首次申领";
    case "change":
      return "变更";
    case "lost":
      return "遗失补办";
    case "damaged":
      return "残损换新";
    case "move":
      return "证件迁移";
    case "destroy":
      return "证件注销";
  }
};
